﻿using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using ZhongKeSite.Entity;
using ZhongKeSite.Entity.Models;

namespace ZhongKeSite.Service
{
    public interface IAdService
    {
        #region 广告列表
        LayPager<Ad> GetAdPagedList(int pageIndex, int pageSize, Expression<Func<Ad, bool>> predicate);
        ResultResponse<Ad> GetAd(string id);
        ResultResponse AddAd(Ad model);
        ResultResponse UpdateAd(Ad model);
        ResultResponse UpdateAdState(List<string> ids, string userName, DataStatus dataStatus);
        #endregion
    }
}
